home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / MPW Related / MPW Interfaces & Libraries / CIncludes / StdArg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-17  |  400 b   |  24 lines  |  [TEXT/MPS ]

  1. /*
  2.     StdArg.h -- Variable arguments
  3.     
  4.     Copyright Apple Computer,Inc.    1987, 1990
  5.     All rights reserved.
  6.  
  7. */
  8.  
  9.  
  10. #ifndef __STDARG__
  11. #define __STDARG__
  12.  
  13. #ifndef __va_list__
  14. #define __va_list__
  15. typedef char *va_list;
  16. #endif
  17.  
  18. #define va_start(ap, parmN) ap = (va_list) ((char *)&parmN + sizeof (parmN))
  19. #define va_arg(ap, type) ((type *)(ap += sizeof (type)))[-1]
  20. #define va_end(ap)    /* do nothing */
  21.  
  22.  
  23. #endif
  24.